package com.tianqu.tms.entity;

import java.sql.Timestamp;

import com.tianqu.tms.core.base.TmsEntity;
import com.tianqu.tms.core.exception.TmsDaoException;
import com.tianqu.tms.core.exception.TmsException;
import com.tianqu.tms.dao.TmsDao;
import com.tianqu.tms.dao.TransferProcessHistoryDao;
import com.tianqu.tms.dto.PicChangeHistoryDto;

public class PicChangeHistory extends TmsEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4363578639904725741L;

	@Override
	public void save() throws TmsDaoException, TmsException {
		// TODO Auto-generated method stub
		
	}
	private String licensePlate;
	private int successFlag;
	private int operateFlag;
	private String remark;
	private Timestamp insertTime;
	private int insertUserId;
	
	public void insertPicChange(PicChangeHistory picChangeHistory) throws TmsDaoException{
		PicChangeHistoryDto dto = new PicChangeHistoryDto();
		TransferProcessHistoryDao uDao = (TransferProcessHistoryDao) TmsDao.getInstance(TmsDao.TMS_TRANSFER_PROCESS_HISTORY);
		dto.setLicensePlate(picChangeHistory.getLicensePlate());
		dto.setOperateFlag(picChangeHistory.getOperateFlag());
		dto.setSuccessFlag(picChangeHistory.getSuccessFlag());
		dto.setRemark(picChangeHistory.getRemark());
		dto.setInsertUserId(String.valueOf(picChangeHistory.getInsertUserId()));
		uDao.insertPicChangeHistory(dto);
		
	}
	

	public String getLicensePlate() {
		return licensePlate;
	}
	public void setLicensePlate(String licensePlate) {
		this.licensePlate = licensePlate;
	}
	public int getSuccessFlag() {
		return successFlag;
	}
	public void setSuccessFlag(int successFlag) {
		this.successFlag = successFlag;
	}
	public int getOperateFlag() {
		return operateFlag;
	}
	public void setOperateFlag(int operateFlag) {
		this.operateFlag = operateFlag;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Timestamp getInsertTime() {
		return insertTime;
	}
	public void setInsertTime(Timestamp insertTime) {
		this.insertTime = insertTime;
	}
	public int getInsertUserId() {
		return insertUserId;
	}
	public void setInsertUserId(int insertUserId) {
		this.insertUserId = insertUserId;
	}
	
	
	
	

}
